# This overrides the default methods of the user_engine.

class UserController < ApplicationController
  
  # Allows users to logout.
  def logout
    session[:user] = nil
    flash[:notice] = 'You have logged out.'
    redirect_to :action => 'index', :controller => 'herbarium'
  end
end